package com.gimi.cloud.mmf.user.feigin;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.gimi.cloud.mmf.user.model.TestUserModel;

import feign.Headers;

/**
 * Created by hetao on 2017/11/15
 */
@FeignClient(name = "user-service")
public interface TestUserFeigin {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/user/save", method = RequestMethod.POST)
    String saveUser(@RequestBody TestUserModel userModel);

}
